package cn.bon.websocket.config;


import com.fasterxml.jackson.databind.ObjectMapper;
import jakarta.annotation.PostConstruct;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.http.converter.json.Jackson2ObjectMapperBuilder;
import org.springframework.stereotype.Component;

/**
 * @author: dronff
 * @description:
 * @CreateTime: 2023/12/12 16:08
 **/
@Component
@Deprecated
public class JsonUtilConfig {
//    public static JsonSerializerAdapter jsonSerializerAdapter = new JacksonJsonSerializerAdapter(new ObjectMapper());
//
//
//    public JsonUtilConfig(Jackson2ObjectMapperBuilder builder){
//        JsonUtilConfig.jsonSerializerAdapter = new JacksonJsonSerializerAdapter(
//                new JacksonConfiguration().jacksonObjectMapper(builder)
//        );
//    }
}
